<?php
if (!$objSession->isLoggedIn() and isset($adminPage)){
	if (isset($_POST['name']) AND $_POST['pass']){
		require_once(ABSPATH . '../boberstroi_pass.php');
		if ($_POST['name'] == $arrUserPass['admin'] AND md5($_POST['pass']) == $arrUserPass['pass'])
			$objSession->_baseLogInSession();
			header('HTTP/1.1 301 Moved Permanently');
			header('Location:' . W_ABSPATH);
			exit();			
	}
	
	include (TEMPLATE . 'metas.php'); #подключаем мета-теги
		echo '<div style="margin: 0 auto; width:400px; padding-top: 50px;">';
			echo '<form method="post" action="">';
				echo '<p>';
					echo '<span style="padding-right:13px;">Имя пользователя:</span>';
					echo '<input type="text" name="name" value="' . (isset($_POST['name']) ? $_POST['name'] : '') . '"/>';
				echo '</p>';
				echo '<p style="margin-top:5px;">';
					echo '<span style="padding-right:74px;" id="loginPass">Пароль:</span>';
					echo '<input type="password" name="pass" value="' . (isset($_POST['pass']) ? $_POST['pass'] : '') . '"/>';
				echo '</p>';
				echo '<input type="submit" value="Войти" />';
			echo '</form>';
		echo '</div>';
		echo '</div>';
		include (TEMPLATE . 'close.php'); #закрываем основные теги
		exit;
	}
  
	//require_once(ABSPATH . '../boberstroi_pass.php'); !$objSession->isLoggedIn()
	//exit;
?>